Skip to content

Conversation

migmartri
Copy link
Member

@migmartri migmartri commented Apr 16, 2023

Since the last release, we detected a memory leak that was affecting both the controlplane and the CAS #68

After profiling, we noticed that the issue was that for CP<->CAS communication we create new connections each time that we did not close. The reason we use different connections each time is because each requests uses a different AUTH token.

This was leaving many GRPC connections alive causing memory creep.

Before
profile001

After the fix

profile004

Closes #68

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri merged commit 254e509 into chainloop-dev:main Apr 16, 2023
@migmartri migmartri deleted the memory-leak branch April 16, 2023 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

review CAS memory handling
1 participant